package com.linwen.excise.niuke._60;

import java.util.Scanner;

/**
 * @author wlw
 * @date 2023/3/16 11:09 PM
 */
public class _46截取字符串 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int n = scanner.nextInt();
        System.out.println(str.substring(0,n));
    }
}
